package com.maserb.monitor.service.jwQuestion;

import com.maserb.monitor.entity.jwQuestion.JwQuestionEntity;
import com.maserb.monitor.entity.jwQuestion.JwQuestionItemEntity;
import com.maserb.monitor.repository.JwQuestion.JwQuestionRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;


public interface JwQuestionService extends JpaSpecificationService<JwQuestionRepository, JwQuestionRepository, JwQuestionEntity, String> {
    Page<JwQuestionEntity> findAll(Pageable pageable,String schoolId, String name ,String status ,String isTop);

    Page<JwQuestionEntity> findAll(Pageable pageable,String schoolId);

    List<JwQuestionEntity> findAll();

    void doRelease(String id);

    void doDisabled(String id);

    void doTop(String id);

    void cancelTop(String id);

    void dodelete(String id);

    void saveImport(String title,List<JwQuestionItemEntity>list,String schoolId);

    Integer find();
}